package br.ufc.apsoo.models;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

@Entity
@Table(name = "pais")
@SequenceGenerator(name = "seq_pais", sequenceName = "seq_pais")
public class Pais implements Serializable {

	/**
	 * Generated Serial
	 */
	private static final long serialVersionUID = -5898280749300243313L;

	@Id
	@Column(name = "id_pais")
	@GeneratedValue(generator = "seq_pais", strategy = GenerationType.AUTO)
	private Integer id;

	@NotNull
	@Column(name = "nome")
	private String Nome;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getNome() {
		return Nome;
	}

	public void setNome(String nome) {
		Nome = nome;
	}
	
	public Boolean ehOBrasil() {
		return Integer.valueOf(0).equals(id);
	}

}
